package expection.Demo02;
//自定义的异常类

public class myExpection extends Exception {

// 传递数字 > 10
    private int detail;
    public myExpection(int a) {
        this.detail = a;
    }
    //toString:异常的打印信息

    @Override
    public String toString() {
        return "myExpection{" +
                "detail=" + detail +
                '}';
    }
}
